package com.hang.model.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PasswordDTO {
    @NotNull
    @ApiModelProperty(value = "用户id",required = true)
    private Long userId;

    @NotBlank
    @ApiModelProperty(value = "老密码",required = true)
    private String oldPassword;

    @NotBlank
    @ApiModelProperty(value = "新密码",required = true)
    private String newPassword;
}
